package reflect;

public class ArgsDemo {
    public static void main(String[] args) {
        dothing();
        dothing(new String[]{"1"});
        dothing("1", "2");
        dothing("1", "2", "3");
        dothing("1", "2", "3", "4");
    }

    public static void dothing(String... args) {
        System.out.println(args.length);
    }
}
